package cn.bx.bid.service;

import cn.bx.bid.dao.UserDao;
import cn.bx.bid.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

//import cn.bx.bid.util.SpringUtil;

@Service
public class UserServies {
    @Resource
    private UserDao userDao;

    public User login(String username, String password){
        return userDao.login(username,password);
    }

/*    public User login1(String username, String password){
        SqlSession ss= SpringUtil.getSession();
        try {
            UserDao user=ss.getMapper(UserDao.class);
            return user.login(username, password);
        }finally {
            SpringUtil.close(ss);
        }
    }*/

}
